package com.dq.Week2.day06;

public class Demo02 {
    public static void main(String[] args) {

        // 创建Dog对象
        Dog dog = new Dog();

        System.out.println(dog);
        dog.setName("旺财");
        dog.setAge(3);
        dog.setSex("男");
        dog.setType("演员");
        dog.setVocal("大礼包!!!我爱旺旺");
        System.out.println(dog);
        dog.eat();
        System.out.println(dog);
        dog.sleep();
        System.out.println(dog);
        dog.lookHouse();
        System.out.println(dog);

        // 创建动物对象
//        Animal duola = new Animal("机器猫","机器","男",120);
//        System.out.println(duola);
//        duola.eat();
//        System.out.println(duola);
//        duola.sleep();
//        System.out.println(duola);

    }
}